import 'package:flutter/material.dart';
import 'ListComponent.dart';
import 'basic/ContainerExample.dart';
import 'basic/RowExample.dart';
import 'basic/ColumnExample.dart';
import 'basic/ImageExample.dart';
import 'basic/TextExample.dart';
import 'basic/IconExample.dart';
import 'basic/RaisedButtonExample.dart';
import 'basic/ScaffoldExample.dart';
import 'basic/AppbarExample.dart';
import 'basic/FlutterLogoExample.dart';
import 'basic/PlaceholderExample.dart';


class BasicsWidgets extends StatelessWidget {

  @override
  Widget build(BuildContext context) {

    var items = [
      ListItem(title: "Container", 
        builder: (BuildContext context) => ContainerExample()),
      ListItem(title: "Row",
        builder: (BuildContext context) => RowExample()),
      ListItem(title: "Column",
        builder: (BuildContext context) => ColumnExample()),
      ListItem(title: "Image",
        builder: (BuildContext context) => ImageExample()),
      ListItem(title: "Text",
        builder: (BuildContext context) => TextExample()),
      ListItem(title: "Icon",
        builder: (BuildContext context) => IconExample()),
      ListItem(title: "RaisedButton",
        builder: (BuildContext context) => RaisedButtonExample()),
      ListItem(title: "Scaffold",
        builder: (BuildContext context) => ScaffoldExample()),
      ListItem(title: "Appbar",
        builder: (BuildContext context) => AppbarExample()),
      ListItem(title: "FlutterLogo",
        builder: (BuildContext context) => FlutterLogoExample()),
      ListItem(title: "Placeholder",
        builder: (BuildContext context) => PlaceholderExample()),
    ];
  
    return ListComponent(data: ListComponentData(title: "Basic", items: items));
  }
}